﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using weighing;
using clf.weighing.entity;

namespace weighing
{
    /// <summary>
    /// Led 设备信息
    /// </summary>

    public class LedInfoVo : BaseVo
    {
        #region Constract
        public LedInfo mLedInfo;
        public LedInfoVo(LedInfo ledInfo)
        {
            mLedInfo = ledInfo;
        }
        #endregion

        #region propertys

        public Int64 Id
        {
            get
            {
                return mLedInfo.id;
            }
            set
            {
                mLedInfo.id = value;
                OnPropertyChanged(this, nameof(Id));
            }
        }


        public String Name
        {
            get
            {
                return mLedInfo.name;
            }
            set
            {
                mLedInfo.name = value;
                OnPropertyChanged(this, nameof(Name));
            }
        }


        public String Ip
        {
            get
            {
                return mLedInfo.ip;
            }
            set
            {
                mLedInfo.ip = value;
                OnPropertyChanged(this, nameof(Ip));
            }
        }

        /// <summary>
        /// 注释:端口
        /// 可空:YES
        /// </summary>

        public Int32? Port
        {
            get
            {
                return mLedInfo.port;
            }
            set
            {
                mLedInfo.port = value;
                OnPropertyChanged(this, nameof(Port));
            }
        }

        /// <summary>
        /// 注释:用户名
        /// 可空:YES
        /// </summary>

        public String UserName
        {
            get
            {
                return mLedInfo.userName;
            }
            set
            {
                mLedInfo.userName = value;
                OnPropertyChanged(this, nameof(UserName));
            }
        }

        /// <summary>
        /// 注释:登陆密码
        /// 可空:YES
        /// </summary>

        public String Password
        {
            get
            {
                return mLedInfo.password;
            }
            set
            {
                mLedInfo.password = value;
                OnPropertyChanged(this, nameof(Password));
            }
        }

        /// <summary>
        /// 注释:品牌 0 未知 1 上海灵信
        /// 可空:YES
        /// 默认值:0
        /// </summary>

        public Int32? Type
        {
            get
            {
                return mLedInfo.type;
            }
            set
            {
                mLedInfo.type = value;
                OnPropertyChanged(this, nameof(Type));
            }
        }
        public Int32? ScreemWidth
        {
            get
            {
                return mLedInfo.screemWidth;
            }
            set
            {
                mLedInfo.screemWidth = value;
                OnPropertyChanged(this, nameof(ScreemWidth));
            }
        }

        public Int32? ScreemHeight
        {
            get
            {
                return mLedInfo.screemHeight;
            }
            set
            {
                mLedInfo.screemHeight = value;
                OnPropertyChanged(this, nameof(ScreemHeight));
            }
        }

        public Int32? FontSize
        {
            get
            {
                return mLedInfo.fontSize;
            }
            set
            {
                mLedInfo.fontSize = value;
                OnPropertyChanged(this, nameof(FontSize));
            }
        }


        public Int32? IsDelete
        {
            get
            {
                return mLedInfo.isDelete;
            }
            set
            {
                mLedInfo.isDelete = value;
                OnPropertyChanged(this, nameof(IsDelete));
            }
        }


        public DateTime? DeleteTime
        {
            get
            {
                return mLedInfo.deleteTime;
            }
            set
            {
                mLedInfo.deleteTime = value;
                OnPropertyChanged(this, nameof(DeleteTime));
            }
        }

        /// <summary>
        /// 注释:备注
        /// 可空:YES
        /// </summary>

        public String Remark
        {
            get
            {
                return mLedInfo.remark;
            }
            set
            {
                mLedInfo.remark = value;
                OnPropertyChanged(this, nameof(Remark));
            }
        }


        public DateTime? AddTime
        {
            get
            {
                return mLedInfo.addTime;
            }
            set
            {
                mLedInfo.addTime = value;
                OnPropertyChanged(this, nameof(AddTime));
            }
        }


        public Int64? AddUserId
        {
            get
            {
                return mLedInfo.addUserId;
            }
            set
            {
                mLedInfo.addUserId = value;
                OnPropertyChanged(this, nameof(AddUserId));
            }
        }


        public String AddUserName
        {
            get
            {
                return mLedInfo.addUserName;
            }
            set
            {
                mLedInfo.addUserName = value;
                OnPropertyChanged(this, nameof(AddUserName));
            }
        }

        /// <summary>
        /// 注释:所属客户端
        /// 可空:YES
        /// 默认值:0
        /// </summary>

        public Int64? ClientId
        {
            get
            {
                return mLedInfo.clientId;
            }
            set
            {
                mLedInfo.clientId = value;
                OnPropertyChanged(this, nameof(ClientId));
            }
        }

        /// <summary>
        /// 注释:所属公司
        /// 可空:YES
        /// 默认值:0
        /// </summary>

        public Int64? CompanyId
        {
            get
            {
                return mLedInfo.companyId;
            }
            set
            {
                mLedInfo.companyId = value;
                OnPropertyChanged(this, nameof(CompanyId));
            }
        }

        #endregion

        #region Text
        public String BrandText
        {
            get
            {
                return mLedInfo.type == 1? "上海灵信":"未知";
            }            
        }
        #endregion

    }
}
